home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 7
/
Gekikoh Dennoh Club Vol. 7 (Japan).7z
/
Gekikoh Dennoh Club Vol. 7 (Japan) (Track 01).bin
/
ikap
/
graphic1
/
obj_18
/
demo3.bas
< prev
next >
Wrap
BASIC Source File
|
1999-06-15
|
4KB
|
128 lines
/*==== -: "OBJ_18_.SP" カンイ デモ プログラム :- ====
int i,j,pl
int anm_flg,anm_flg2
char kyc
/* ノウ モドキ
dim int tbl0(7,3)={&H0180,&H0181,&H0190,&H0191,
&H0182,&H0183,&H0192,&H0193,
&H0184,&H0185,&H0194,&H0195,
&H0186,&H0187,&H0196,&H0197,
&H0188,&H0189,&H0198,&H0199,
&H0186,&H0187,&H0196,&H0197,
&H0184,&H0185,&H0194,&H0195,
&H0182,&H0183,&H0192,&H0193}
dim int tbl1(7,3)={&H0180,&H0181,&H0190,&H0191,
&H0188,&H0189,&H0198,&H0199,
&H0186,&H0187,&H0196,&H0197,
&H0184,&H0185,&H0194,&H0195,
&H0182,&H0183,&H0192,&H0193,
&H0180,&H0181,&H0190,&H0191,
&H0180,&H0181,&H0190,&H0191,
&H0180,&H0181,&H0190,&H0191}
/* ノウ モドキ 2
dim int tbl2(7,3)={&H01CC,&H01CD,&H01DC,&H01DD,
&H01CE,&H01CF,&H01DE,&H01DF,
&H01EA,&H01EB,&H01FA,&H01FB,
&H01EC,&H01ED,&H01FC,&H01FD,
&H01EE,&H01EF,&H01FE,&H01FF,
&H01EC,&H01ED,&H01FC,&H01FD,
&H01EA,&H01EB,&H01FA,&H01FB,
&H01CE,&H01CF,&H01DE,&H01DF}
dim int tbl3(7,3)={&H01CC,&H01CD,&H01DC,&H01DD,
&H01EE,&H01EF,&H01FE,&H01FF,
&H01EC,&H01ED,&H01FC,&H01FD,
&H01EA,&H01EB,&H01FA,&H01FB,
&H01CE,&H01CF,&H01DE,&H01DF,
&H01CC,&H01CD,&H01DC,&H01DD,
&H01CC,&H01CD,&H01DC,&H01DD,
&H01CC,&H01CD,&H01DC,&H01DD}
/* シャボンダマ
dim int tbl4(3,3)={&H03C0,&H03C1,&H03D0,&H03D1,
&H03C2,&H03C3,&H03D2,&H03D3,
&H03C4,&H03C5,&H03D4,&H03D5,
&H03C6,&H03C7,&H03D6,&H03D7}
/*==== -: screen init. :- ====
screen 0,3,1,1 : window( 0, 0,511,511)
vpage(&B01) : apage(&B00)
sp_init() : sp_disp(1)
spfile_def("OBJ_18_.SP",0)
palfile_def("OBJ_18_.PAL",1)
for i=0 to 7
for j=0 to 15
pl=sp_color(j,,1+i)
fill(j*8,i*4, j*8+6,i*4+2,pl)
next
next
for i=0 to 2
sp_set(i*4+78, 24+i*40,200,&H3E0+i*256,3)
sp_set(i*4+79, 40+i*40,200,&H3E1+i*256,3)
sp_set(i*4+80, 24+i*40,216,&H3F0+i*256,3)
sp_set(i*4+81, 40+i*40,216,&H3F1+i*256,3)
sp_set(i*4+90,144+i*40,200,&H6E2+i*256,3)
sp_set(i*4+91,160+i*40,200,&H6E3+i*256,3)
sp_set(i*4+92,144+i*40,216,&H6F2+i*256,3)
sp_set(i*4+93,160+i*40,216,&H6F3+i*256,3)
sp_set(i*4+102, 24+i*40,240,&H3E4+i*256,3)
sp_set(i*4+103, 40+i*40,240,&H3E5+i*256,3)
sp_set(i*4+104, 24+i*40,256,&H3F4+i*256,3)
sp_set(i*4+105, 40+i*40,256,&H3F5+i*256,3)
sp_set(i*2+122,152+i*40,240,&H6E6+i*256,3)
sp_set(i*2+123,152+i*40,256,&H6F6+i*256,3)
next
/*==== -: main demo :- ====
while inkey$(0)<>chr$(&H1B)
anm_flg=anm_flg+1 and 7
anm_flg2=anm_flg2+1 and 7
v_disp()
for i=0 to 2
sp_set(i*4 , 24+i*40, 56,tbl0(anm_flg,0)+i*256,3)
sp_set(i*4+1, 40+i*40, 56,tbl0(anm_flg,1)+i*256,3)
sp_set(i*4+2, 24+i*40, 72,tbl0(anm_flg,2)+i*256,3)
sp_set(i*4+3, 40+i*40, 72,tbl0(anm_flg,3)+i*256,3)
next
for i=0 to 2
sp_set(i*4+12,144+i*40, 56,tbl1(anm_flg,0)+i*256,3)
sp_set(i*4+13,160+i*40, 56,tbl1(anm_flg,1)+i*256,3)
sp_set(i*4+14,144+i*40, 72,tbl1(anm_flg,2)+i*256,3)
sp_set(i*4+15,160+i*40, 72,tbl1(anm_flg,3)+i*256,3)
next
for i=0 to 2
sp_set(i*4+24, 24+i*40, 96,tbl2(anm_flg,0)+i*256,3)
sp_set(i*4+25, 40+i*40, 96,tbl2(anm_flg,1)+i*256,3)
sp_set(i*4+26, 24+i*40,112,tbl2(anm_flg,2)+i*256,3)
sp_set(i*4+27, 40+i*40,112,tbl2(anm_flg,3)+i*256,3)
next
v_disp()
for i=0 to 2
sp_set(i*4+36,144+i*40, 96,tbl3(anm_flg,0)+i*256,3)
sp_set(i*4+37,160+i*40, 96,tbl3(anm_flg,1)+i*256,3)
sp_set(i*4+38,144+i*40,112,tbl3(anm_flg,2)+i*256,3)
sp_set(i*4+39,160+i*40,112,tbl3(anm_flg,3)+i*256,3)
next
for i=0 to 5
sp_set(i*4+48, 24+i*40,136,tbl4(anm_flg2 shr 1,0)+i*256,3)
sp_set(i*4+49, 40+i*40,136,tbl4(anm_flg2 shr 1,1)+i*256,3)
sp_set(i*4+50, 24+i*40,152,tbl4(anm_flg2 shr 1,2)+i*256,3)
sp_set(i*4+51, 40+i*40,152,tbl4(anm_flg2 shr 1,3)+i*256,3)
next
for i=0 to 5
sp_set(i+72, 32+i*40,176,&H3C8+(anm_flg2 shr 1)+i*256,3)
next
endwhile